﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SuperStarProject.Models.ProductModel>>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>RandomProduct</title>
</head>
<body>
<div class="right_box">
                <%int i = 0; %>
             <% foreach (var item in Model)
                {                  
                    if (i >= 3) { break; }%>         
                    <div class="new_prod_box">
                        <%= Html.ActionLink(item.TenSP, "ViewDetails", new {productId = item.MaSP}) %>
                        <div class="new_prod_bg">
                        <a href="<%= Url.Action("ViewDetails", new {productId = item.MaSP})%>"><img src="<%= item.HinhAnh%>" alt="Ảnh sản phẩm" title="Ảnh sản phẩm" class="thumb" border="0" height="100px" width="100px"/></a>
                        </div> 
                    </div>       
                    <% i++;%>
             <%} %>
  </div>           
</body>
</html>

